﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using HKEA.CMS.Core.BLL;
using HKEA.CMS.Core.BLL.Tbl;
using HKEA.CMS.Core.Models;

using HKEA.CMS.Core.Utility;namespace WebApplication
{
    /// <summary>
    /// M_Logo 的摘要说明
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务，请取消对下行的注释。
    // [System.Web.Script.Services.ScriptService]
    public class M_Login : System.Web.Services.WebService
    {
        [WebMethod(EnableSession = true, Description = "登录验证,登录成功返回{LoginUID}_{CustomerUID}_{Name_Eng}_{Name_Chi},否则否则返回值为空")]
        public string Login(string strLoginName, string strPWD)
        {
            string ret=string.Empty;
            if (!string.IsNullOrEmpty(strLoginName) && !string.IsNullOrEmpty(strPWD))
            {
                tblCust_WebLoginBLL bll = new tblCust_WebLoginBLL();
                ret = bll.LoginMethod(strLoginName, strPWD);
            }
            return ret;
        }
    }
}
